package cn.itcast.day11.demo09;

import java.util.ArrayList;
import java.util.List;

public class Demo02Equals {

    public static void main(String[] args) {

        Person p1 = new Person("Tom",18);

        Person p2 = new Person("Tom",18);

        System.out.println("p1:"+p1);
        System.out.println("p2:"+p2);



        boolean b = p1.equals(p2);
        System.out.println(b);
    }
}
